package org.example.onlineEducation.service;

import org.example.onlineEducation.dao.PermissionDao;
import org.example.onlineEducation.entity.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionService {

    @Autowired
    private PermissionDao dao;

    public List<Permission> selectAllByRoleId(Integer roleId){
        return dao.selectAllByRoleId(roleId);
    }
}
